package com.likejian.rabbit.direct;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.likejian.rabbit.RabbitConfig;

@Component
@RabbitListener(queues = RabbitConfig.SPRINGBOOT_RABBIT_DIRECT_A_QUEUE)
public class DirectReceiverA1 {

    @RabbitHandler
    public void process(String msg) {
        System.out.println("DirectReceiverA1  : " + msg);
    }

}